﻿namespace Magic.System;

public class LoginInput
{
    /// <summary>
    /// 账号
    /// </summary>
    [Required]
    public string UserName { get; set; }
    /// <summary>
    /// 密码
    /// </summary>
    [Required]
    public string Password { get; set; }
}

public class LoginOutput
{
    public string RoutePath { get; set; }
    public UserInfoOutput UserInfo { get; set; }
}
public class UserInfoOutput
{
    public int Id { get; set; }
    public string Username { get; set; }

    public string Nickname { get; set; }

    public string Avatar { get; set; }

    public long? Lastlogintime { get; set; }

    public string Token { get; set; }

    public string RefreshToken { get; set; }
}

public class LoginUserInfoOutput
{ 
    public UserInfoOutput AdminInfo { get; set; }
    public List<MenuOutput> Menus { get; set; }
    public dynamic SiteConfig { get; set; }
}

